package cn.cdeden.knowledge.mapper;


import cn.cdeden.knowledge.domain.SysMessage;
import cn.cdeden.knowledge.domain.dto.SysMessageQueryParam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysMessageMapper extends BaseMapper<SysMessage> {
    IPage<SysMessage> getMessageByUser(@Param("query") SysMessageQueryParam query , IPage<SysMessage> page);

    List<SysMessage> getUserPushMessage(@Param("userId") Long userId);
}

